package com.andy.stripes.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.andy.stripes.domain.Article;
import com.andy.stripes.persistence.ArticleMapper;

@Service
public class ArticleService {

	
	
	@Autowired
	private ArticleMapper  articleMapper;
	
	
	

	public List<Article> searchArticleList()
	{
		return articleMapper.searchArticleList();
		
		
		
	}
	
	
	

	public  Article     searchArticleById(String id){
		return articleMapper.searchArticleById(id);
		
	}

	public  void insertArticle(Article article){
		articleMapper.insertArticle(article);
	}
	
	public  void  deleteArticle(Article article){
		
		
	}
	
	public void   updateArticle(Article  article){
		
		
	}
	
	
	
	
}
